#pragma once

#include"IRenderableObject.h"
#include"D3DX11.h"

class PALEGEM_API pgPrimitiveCube : public IRenderableObject
{
public:
	pgPrimitiveCube();
	 ~pgPrimitiveCube();

	 bool Load(const char* szFilePath) {return false;}

	bool Load();
	
	 void Render();

	 void PreRender();

	 void PostRender();

	  pgMat44 GetWorldTransformMatrix() {return m_worldTransformMatrix;}
	  void SetWorldTransformMatrix(pgMat44 mat) {m_worldTransformMatrix = mat;}

private:
	ID3D11Buffer *m_pVertexBuffer;
	ID3D11Buffer *m_pIndexBuffer;

	ID3D11Buffer *m_pConstantBuffer;

	pgMat44 m_worldTransformMatrix;


	int m_nIndexCount;
	int m_nVertexCount;
};